package entiy;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Person {
	@Value("#{item}")
	private Item item;
	@Value("#{item.iname}")
	private String pname;

	public Item getItem() {
		return item;
	}

	@Override
	public String toString() {
		return "Person [item=" + item + ", pname=" + pname + "]";
	}

	public void setItem(Item item) {
		this.item = item;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

}
